/* clarity-js v0.6.34: https://github.com/microsoft/clarity (License: MIT) */ !function(){"use strict";var t=Object.freeze({__proto__:null,get start(){return kn},get stop(){return En},get parse(){return Mn},get getId(){return Nn},get add(){return Sn},get update(){return _n},get sameorigin(){return Tn},get iframe(){return xn},get getNode(){return Cn},get getValue(){return zn},get get(){return jn},get lookup(){return Ln},get has(){return Rn},get updates(){return An}}),e=Object.freeze({__proto__:null,get track(){return lr},get start(){return vr},get queue(){return gr},get stop(){return mr}}),n=Object.freeze({__proto__:null,get data(){return Dr},get keys(){return Ir},get fragments(){return jr},get start(){return Lr},get clone(){return Rr},get compute(){return Ar},get reset(){return Yr},get update(){return Hr},get stop(){return Xr}}),r=Object.freeze({__proto__:null,get data(){return xr},get start(){return Br},get check(){return Vr},get trigger(){return Fr},get compute(){return Jr},get stop(){return Gr}}),a=Object.freeze({__proto__:null,get data(){return Zr},get updates(){return Kr},get start(){return Qr},get stop(){return $r},get log(){return ta},get compute(){return ea},get reset(){return na}}),i=Object.freeze({__proto__:null,get data(){return ra},get callbacks(){return aa},get start(){return oa},get userAgentData(){return ua},get stop(){return sa},get metadata(){return ca},get id(){return la},get consent(){return da},get clear(){return fa},get save(){return ha}}),o=Object.freeze({__proto__:null,get data(){return Ea},get start(){return Oa},get stop(){return Ma},get envelope(){return Na}}),u={projectId:null,delay:1e3,lean:!1,track:!0,content:!0,mask:[],unmask:[],regions:[],extract:[],cookies:[],report:null,upload:null,fallback:null,upgrade:null};function s(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function l(t){return void 0===t&&(t=null),t=t||performance.now(),Math.max(Math.round(t-c),0)}var d="0.6.34";function f(t){for(var e=5381,n=e,r=0;rN[t]||0===N[t])&&(S[t]=e,N[t]=e))}function D(t,e,n){return window.setTimeout(Ta(t),e,n)}function I(t){return window.clearTimeout(t)}var C=0,z=0,j=null;function L(){j&&I(j),j=D(R,z),C=l()}function R(){var t=l();M={gap:t-C},Ur(25),M.gap<3e5?j=D(R,z):Ha&&(O("clarity","suspend"),ni(),["mousemove","touchstart"].forEach((function(t){return Da(document,t,Ua)})),["resize","scroll","pageshow"].forEach((function(t){return Da(window,t,Ua)})))}var A=Object.freeze({__proto__:null,get data(){return M},start:function(){z=6e4,C=0},reset:L,stop:function(){I(j),C=0,z=0}}),Y=null;function H(t,e){if(t in Y){var n=Y[t],r=n[n.length-1];e-r[0]>100?Y[t].push([e,0]):r[1]=e-r[0]}else Y[t]=[[e,0]]}function X(){Ur(36)}function W(){Y={}}var q=Object.freeze({__proto__:null,get data(){return Y},start:function(){Y={}},stop:function(){Y={}},track:H,compute:X,reset:W}),P=null;function U(t){qa()&&u.lean&&(u.lean=!1,P={key:t},ha(),u.upgrade&&u.upgrade(t),Ur(3))}var B=Object.freeze({__proto__:null,get data(){return P},start:function(){!u.lean&&u.upgrade&&u.upgrade("Config"),P=null},upgrade:U,stop:function(){P=null}}),V=null;function F(t,e){G(t,"string"==typeof e?[e]:e)}function J(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),G("userId",[t]),G("sessionId",[e]),G("pageId",[n])}function G(t,e){if(qa()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in V?V[t]:[]),r=0;r0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=48&&u<=57,r=r||64===u,a=9===u||10===u||13===u||32===u,(0===o||o===t.length-1||a)&&((n||r)&&(null===i&&(i=t.split("")),lt(i,e,a?o:o+1)),a&&(n=!1,r=!1,e=o))}return i?i.join(""):t}(t);case"input":return ct(t)}return t;case 2:case 3:switch(e){case"*T":return r?function(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),i=t.substr(r+e.length);return""+a+e.length.toString(36)+i}return t}(t):st(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":return ct(t);case"placeholder":return st(t)}}return t}function st(t){return t.replace(/\S/gi,"•")}function ct(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r0&&r%5==0?" ":"•";return n}function lt(t,e,n){for(var r=e+1;r=0?":nth-of-type("+t.position+")":"";switch(t.tag){case"STYLE":case"TITLE":case"LINK":case"META":case"*T":case"*D":return"";case"HTML":return"HTML";default:if(null===r)return"";r+=">",t.tag=0===t.tag.indexOf("svg:")?t.tag.substr("svg:".length):t.tag;var i=""+r+t.tag+a,o="class"in n&&n.class.length>0?n.class.trim().split(/\s+/):null;if(e){var u="id"in n&&n.id.length>0?n.id:null;i=(o="BODY"!==t.tag&&o?o.filter((function(t){return!ht(t)})):[]).length>0?""+r+t.tag+"."+o.join(".")+a:i,i=u&&!1===ht(u)?function(t){var e=t.lastIndexOf("*S"),n=t.lastIndexOf("iframe:HTML"),r=Math.max(e,n);if(r<0)return"";var a=t.indexOf(">",r)+1;return t.substr(0,a)}(r)+"#"+u:i}else i=o?""+r+t.tag+"."+o.join(".")+a:i;return i}}function ht(t){for(var e=0;e=48&&n<=57)return!0}return!1}var pt={},vt=[],gt=null,mt=null,bt=null;function yt(){pt={},vt=[],gt=null,mt=null}function wt(t,e){return void 0===e&&(e=0),Q(this,void 0,void 0,(function(){var n,r,a;return $(this,(function(i){for(n=0,r=vt;npt[e].yield?0:1:2}function Ot(t){pt[St(t)]={start:performance.now(),calls:0,yield:30}}function Mt(t){var e=performance.now(),n=St(t),r=e-pt[n].start;T(t.cost,r),_(5),pt[n].calls>0&&T(4,r)}function Nt(t){return Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(r){switch(r.label){case 0:return(e=St(t))in pt?(Mt(t),n=pt[e],[4,_t()]):[3,2];case 1:n.yield=r.sent().timeRemaining(),function(t){var e=St(t);if(pt&&pt[e]){var n=pt[e].calls,r=pt[e].yield;Ot(t),pt[e].calls=n+1,pt[e].yield=r}}(t),r.label=2;case 2:return[2,e in pt?1:2]}}))}))}function St(t){return t.id+"."+t.cost}function _t(){return Q(this,void 0,void 0,(function(){return $(this,(function(t){switch(t.label){case 0:return mt?[4,mt]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t){Tt(t,{timeout:5e3})}))]}}))}))}var Tt=window.requestIdleCallback||function(t,e){var n=performance.now(),r=new MessageChannel,a=r.port1,i=r.port2;a.onmessage=function(r){var a=performance.now(),o=a-n,u=a-r.data;if(u>30&&oe.timeout;t({didTimeout:s,timeRemaining:function(){return s?30:Math.max(0,30-u)}})}},requestAnimationFrame((function(){i.postMessage(performance.now())}))};var xt,Dt=[],It=!1,Ct=null;function zt(t){window.requestAnimationFrame((function(){for(var e=0,n=t;e0)s=Math.floor(100*u[0].inlineSize),c=Math.floor(100*u[0].blockSize);else{var l=a.getBoundingClientRect();s=Math.floor(100*l.width),c=Math.floor(100*l.height)}s!==o[0]&&c!==o[1]&&(o=[s,c],Dt.push({id:i,width:s,height:c}))}}Dt.length>0&&Rt(37)}))}function jt(){Dt=[]}function Lt(){jt(),Ct&&(Ct.disconnect(),Ct=null),It=!1}function Rt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),Q(this,void 0,void 0,(function(){var r,a,i,o,s,c,d,f,h,p,v,g,y,w,k,E,O,M,N,S,_,T,x,D,I,C;return $(this,(function(z){switch(z.label){case 0:switch(r=n||l(),a=[r,t],t){case 8:return[3,1];case 7:return[3,2];case 37:return[3,3];case 5:case 6:return[3,4]}return[3,11];case 1:return i=xt,a.push(i.width),a.push(i.height),m(t,i.width,i.height),gr(a),[3,11];case 2:for(o=0,s=Xn;o0))return[3,10];v=0,g=p,z.label=5;case 5:return v=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(o),n[o]=r++)}else a=null,e.push(t[i]),r++;return e}(a),!u.lean),z.label=10;case 10:return[3,11];case 11:return[2]}}))}))}function At(t){return t.toString(36)}function Yt(t,e,n){return t+"="+ut(e,t,n)}function Ht(){xt=null}function Xt(){var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,s=Math.max(n,r,a,i,o,u),c=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,f=e?e.clientHeight:null,h=e?e.scrollHeight:null,p=e?e.offsetHeight:null,v=Math.max(c,l,d,f,h,p);null!==xt&&s===xt.width&&v===xt.height||null===s||null===v||(xt={width:s,height:v},Rt(8))}function Wt(t){var e={x:0,y:0};if(t&&t.offsetParent)do{var n=t.offsetParent,r=null===n?xn(t.ownerDocument):null;e.x+=t.offsetLeft,e.y+=t.offsetTop,t=r||n}while(t);return e}var qt=["input","textarea","radio","button","canvas"],Pt=[];function Ut(t){Da(t,"click",Bt.bind(this,9,t),!0)}function Bt(t,e,n){var r=xn(e),a=r?r.contentDocument.documentElement:document.documentElement,i="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null;if(r){var u=Wt(r);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}var s=$n(n),c=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(s),d=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var r=t.getBoundingClientRect();r&&r.width>0&&r.height>0&&(e={x:Math.floor(r.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(r.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(r.width),h:Math.floor(r.height)})}return e}(s);0===n.detail&&d&&(i=Math.round(d.x+d.w/2),o=Math.round(d.y+d.h/2));var f=d?Math.max(Math.floor((i-d.x)/d.w*32767),0):0,h=d?Math.max(Math.floor((o-d.y)/d.h*32767),0):0;null!==i&&null!==o&&(Pt.push({time:l(),event:t,data:{target:s,x:i,y:o,eX:f,eY:h,button:n.button,reaction:Ft(s),context:Jt(c),text:Vt(s),link:c?c.href:null,hash:null}}),wt(er.bind(this,t)))}function Vt(t){var e=null;if(t){var n=t.textContent||t.value||t.alt;n&&(e=n.trim().replace(/\s+/g," ").substr(0,25))}return e}function Ft(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(qt.indexOf(e)>=0)return 0}return 1}function Jt(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function Gt(){Pt=[]}var Zt=[];function Kt(t,e){Zt.push({time:l(),event:38,data:{target:$n(e),action:t}}),wt(er.bind(this,38))}function Qt(){Zt=[]}var $t=null,te=[];function ee(t){var e=$n(t),n=jn(e);if(e&&e.type&&n){var r=void 0;switch(e.type){case"radio":case"checkbox":r=e.checked?"true":"false";break;case"range":r=e.value;break;default:r=ut(e.value,"input",n.metadata.privacy)}var a={target:e,value:r};te.length>0&&te[te.length-1].data.target===a.target&&te.pop(),te.push({time:l(),event:27,data:a}),I($t),$t=D(ne,500,27)}}function ne(t){wt(er.bind(this,t))}function re(){te=[]}var ae,ie=[],oe=null;function ue(t,e,n){var r=xn(e),a=r?r.contentDocument.documentElement:document.documentElement,i="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null;if(r){var u=Wt(r);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}null!==i&&null!==o&&ce({time:l(),event:t,data:{target:$n(n),x:i,y:o}})}function se(t,e,n){var r=xn(e),a=r?r.contentDocument.documentElement:document.documentElement,i=n.changedTouches,o=l();if(i)for(var u=0;u1?ie[e-2]:null;n&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y,a=Math.sqrt(n*n+r*r),i=e.time-t.time,o=e.data.target===t.data.target;return e.event===t.event&&o&&a<20&&i<25}(n,t)&&ie.pop(),ie.push(t),I(oe),oe=D(le,500,t.event);break;default:ie.push(t),le(t.event)}}function le(t){wt(er.bind(this,t))}function de(){ie=[]}function fe(){var t=document.documentElement;ae={width:t&&"clientWidth"in t?Math.min(t.clientWidth,window.innerWidth):window.innerWidth,height:t&&"clientHeight"in t?Math.min(t.clientHeight,window.innerHeight):window.innerHeight},er(11)}function he(){ae=null}var pe=[],ve=null;function ge(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?$n(t):n;if(r&&r.nodeType===Node.DOCUMENT_NODE){var a=xn(r);e=a?a.contentWindow:e,r=n=r.documentElement}var i=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),u={time:l(),event:10,data:{target:r,x:i,y:o}};if((null!==t||0!==i||0!==o)&&null!==i&&null!==o){var s=pe.length,c=s>1?pe[s-2]:null;c&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<25}(c,u)&&pe.pop(),pe.push(u),I(ve),ve=D(me,500,10)}}function me(t){wt(er.bind(this,t))}var be=null,ye=null,we=null;function ke(t){var e=(t.nodeType===Node.DOCUMENT_NODE?t:document).getSelection();if(null!==e&&!(null===e.anchorNode&&null===e.focusNode||e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset)){var n=be.start?be.start:null;null!==ye&&null!==be.start&&n!==e.anchorNode&&(I(we),Ee(21)),be={start:e.anchorNode,startOffset:e.anchorOffset,end:e.focusNode,endOffset:e.focusOffset},ye=e,I(we),we=D(Ee,500,21)}}function Ee(t){wt(er.bind(this,t))}function Oe(){ye=null,be={start:0,startOffset:0,end:0,endOffset:0}}var Me,Ne,Se=[];function _e(t){Se.push({time:l(),event:39,data:{target:$n(t)}}),wt(er.bind(this,39))}function Te(){Se=[]}function xe(t){Me={name:t.type},er(26),ni()}function De(){Me=null}function Ie(){Ne={visible:"visibilityState"in document?document.visibilityState:"default"},er(28)}function Ce(){Ne=null}function ze(t){!function(t){var e=xn(t);Da(e?e.contentWindow:t===document?window:t,"scroll",ge,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(Ut(t),function(t){Da(t,"cut",Kt.bind(this,0),!0),Da(t,"copy",Kt.bind(this,1),!0),Da(t,"paste",Kt.bind(this,2),!0)}(t),function(t){Da(t,"mousedown",ue.bind(this,13,t),!0),Da(t,"mouseup",ue.bind(this,14,t),!0),Da(t,"mousemove",ue.bind(this,12,t),!0),Da(t,"mousewheel",ue.bind(this,15,t),!0),Da(t,"dblclick",ue.bind(this,16,t),!0),Da(t,"touchstart",se.bind(this,17,t),!0),Da(t,"touchend",se.bind(this,18,t),!0),Da(t,"touchmove",se.bind(this,19,t),!0),Da(t,"touchcancel",se.bind(this,20,t),!0)}(t),function(t){Da(t,"input",ee,!0)}(t),function(t){Da(t,"selectstart",ke.bind(this,t),!0),Da(t,"selectionchange",ke.bind(this,t),!0)}(t),function(t){Da(t,"submit",_e,!0)}(t))}var je=Object.freeze({__proto__:null,start:function(){nr=[],ar(),Gt(),Qt(),de(),re(),Da(window,"resize",fe),fe(),Da(document,"visibilitychange",Ie),Ie(),pe=[],ge(),Oe(),Te(),Da(window,"pagehide",xe)},stop:function(){nr=[],ar(),Gt(),Qt(),I(oe),ie.length>0&&le(ie[ie.length-1].event),I($t),re(),he(),Ce(),I(ve),pe=[],Oe(),I(we),Te(),De()},observe:ze}),Le=/[^0-9\.]/g;function Re(t){for(var e=0,n=Object.keys(t);e=0||a.indexOf("posting")>=0?"article":a){case"article":case"recipe":ta(5,t[r]),ta(8,t.creator),ta(18,t.headline);break;case"product":ta(5,t[r]),ta(10,t.name),ta(12,t.sku),t.brand&&ta(6,t.brand.name);break;case"aggregaterating":t.ratingValue&&(x(11,Ae(t.ratingValue,100)),x(18,Ae(t.bestRating)),x(19,Ae(t.worstRating))),x(12,Ae(t.ratingCount)),x(17,Ae(t.reviewCount));break;case"person":ta(8,t.name);break;case"offer":ta(7,t.availability),ta(14,t.itemCondition),ta(13,t.priceCurrency),ta(12,t.sku),x(13,Ae(t.price));break;case"brand":ta(6,t.name)}null!==a&&"object"==typeof a&&Re(a)}}function Ae(t,e){if(void 0===e&&(e=1),null!==t)switch(typeof t){case"number":return Math.round(t*e);case"string":return Math.round(parseFloat(t.replace(Le,""))*e)}return null}var Ye=["title","alt","onload","onfocus","onerror"],He=/[\r\n]+/g;function Xe(e,n){var r=null;if(2===n&&!1===Rn(e))return r;0!==n&&e.nodeType===Node.TEXT_NODE&&e.parentElement&&"STYLE"===e.parentElement.tagName&&(e=e.parentNode);var a=!1===Rn(e)?"add":"update",i=e.parentElement?e.parentElement:null,o=e.ownerDocument!==document;switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:i=o&&e.parentNode?xn(e.parentNode):i;var u=e,s={tag:(o?"iframe:":"")+"*D",attributes:{name:u.name,publicId:u.publicId,systemId:u.systemId}};t[a](e,i,s,n);break;case Node.DOCUMENT_NODE:e===document&&Mn(document),We(e);break;case Node.DOCUMENT_FRAGMENT_NODE:var c=e;if(c.host)if(Mn(c),"function"===typeof c.constructor&&c.constructor.toString().indexOf("[native code]")>=0){We(c);for(var l="",d=0,f=("adoptedStyleSheets"in c?c.adoptedStyleSheets:[]);d0)for(var r=0;r0)&&(e=Pe(t.sheet)),e}function Pe(t){var e="",n=null;try{n=t?t.cssRules:[]}catch(t){if(Tr(1,1,t?t.name:null),t&&"SecurityError"!==t.name)throw t}if(null!==n)for(var r=0;r0))return[3,4];for(a=r.shift(),i=a.firstChild;i;)r.push(i),i=i.nextSibling;return 0!==(o=Et(e))?[3,3]:[4,Nt(e)];case 2:o=s.sent(),s.label=3;case 3:return 2===o?[3,4]:((u=Xe(a,n))&&r.push(u),[3,1]);case 4:return[2]}}))}))}var Be=[],Ve=[],Fe=null,Je=null,Ge=null,Ze=[],Ke=null,Qe=null,$e={};function tn(t){var e=l();H(6,e),Ve.push({time:e,mutations:t}),wt(en,1).then((function(){Ta(Xt)(),Ta(Jn)()}))}function en(){return Q(this,void 0,void 0,(function(){var t,e,n,r,a,i,o,u,s;return $(this,(function(c){switch(c.label){case 0:Ot(t={id:la(),cost:3}),c.label=1;case 1:if(!(Ve.length>0))return[3,8];e=Ve.shift(),n=0,r=e.mutations,c.label=2;case 2:return nQe,a=jn(t.target),i=a&&a.selector?a.selector.join():t.target.nodeName,o=[n.selector?n.selector.join():"",i,t.attributeName,nn(t.addedNodes),nn(t.removedNodes)].join();$e[o]=o in $e?$e[o]:[0];var u=$e[o];if(!1===r&&u[0]>=10&&rn(u[1],2,e),u[0]=r?u[0]+1:1,10===u[0])return u[1]=t.removedNodes,"suspend";if(u[0]>10)return""}return t.type}(a,t))&&o&&o.ownerDocument&&Mn(o.ownerDocument),u&&o&&o.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&o.host&&Mn(o),u){case"attributes":Xe(o,3);break;case"characterData":Xe(o,4);break;case"childList":rn(a.addedNodes,1,t),rn(a.removedNodes,2,t);break;case"suspend":(s=jn(o))&&(s.metadata.suspend=!0)}c.label=5;case 5:return n++,[3,2];case 6:return[4,Rt(6,t,e.time)];case 7:return c.sent(),[3,1];case 8:return Mt(t),[2]}}))}))}function nn(t){for(var e=[],n=0;t&&n=0&&fn[i]&&((c=fn[i]).children.push(a),l=null===l?c.region:l,d=c.fragment,s=c.metadata.privacy),s=function(t,e,n,r){var a=e.attributes,i=e.tag.toUpperCase();if(wn.has(t))return wn.get(t);if("*T"===i&&n&&n.data){var o=n.selector?n.selector[0]:"";r="STYLE"===n.data.tag||"TITLE"===n.data.tag?0:r;for(var u=0,s=vn;u=0){r=0;break}}}if(null==a)return r;if("class"in a&&1===r)for(var l=0,d=ln;l=0){r=2;break}}if("INPUT"===i)if(0===r){for(var h="",p=0,v=Object.keys(a);p=0){r=2;break}}}else 1===r&&(r=a&&"submit"===a.type?0:2);"type"in a&&sn.indexOf(a.type)>=0&&(r=2);"data-clarity-mask"in a&&(r=3);"data-clarity-unmask"in a&&(r=0);return r}(t,n,c,s),n.attributes&&"data-clarity-region"in n.attributes&&(Vn(t,n.attributes["data-clarity-region"]),l=a),dn[a]=t,fn[a]={id:a,parent:i,previous:o,children:[],data:n,selector:null,hash:null,region:l,metadata:{active:!0,suspend:!1,privacy:s,position:null,size:null},fragment:d},In(fn[a]),function(t,e){var n=t.data,r="*T"===n.tag&&n.value&&n.value.length>15,a=2===t.metadata.privacy||3===t.metadata.privacy;r&&a&&e&&null===e.metadata.size&&(e.metadata.size=[]);"IMG"===n.tag&&3===t.metadata.privacy&&(t.metadata.size=[])}(fn[a],c),Hn(a,r,fn[a].fragment)}function _n(t,e,n,r){var a=Nn(t),i=e?Nn(e):null,o=Yn(t),u=!1,s=!1;if(a in fn){var c=fn[a];if(c.metadata.active=!0,c.previous!==o&&(u=!0,c.previous=o),c.parent!==i){u=!0;var l=c.parent;if(c.parent=i,null!==i&&i>=0){var d=null===o?0:fn[i].children.indexOf(o)+1;fn[i].children.splice(d,0,a),c.region=Fn(t)?a:fn[i].region}else!function(t,e){if(t in fn){var n=fn[t];n.metadata.active=!1,n.parent=null,Hn(t,e)}}(a,r);if(null!==l&&l>=0){var f=fn[l].children.indexOf(a);f>=0&&fn[l].children.splice(f,1)}s=!0}for(var h in n)Dn(c.data,n,h)&&(u=!0,c.data[h]=n[h]);c.fragment&&mn[c.fragment]&&(u=!0),In(c),Hn(a,r,fn[a].fragment,u,s)}}function Tn(t){var e=!1;if(t.nodeType===Node.ELEMENT_NODE&&"IFRAME"===t.tagName){var n=t;try{n.contentDocument&&(yn.set(n.contentDocument,n),e=!0)}catch(t){}}return e}function xn(t){var e=t.nodeType===Node.DOCUMENT_NODE?t:null;return e&&yn.has(e)?yn.get(e):null}function Dn(t,e,n){if("object"==typeof t[n]&&"object"==typeof e[n]){for(var r in t[n])if(t[n][r]!==e[n][r])return!0;for(var r in e[n])if(e[n][r]!==t[n][r])return!0;return!1}return t[n]!==e[n]}function In(t){var e=t.parent&&t.parent in fn?fn[t.parent]:null,n=e?e.selector:null,r=t.data,a=function(t,e){e.metadata.position=1;for(var n=t?t.children.indexOf(e.id):-1;n-- >0;){var r=fn[t.children[n]];if(e.data.tag===r.data.tag){e.metadata.position=r.metadata.position+1;break}}return e.metadata.position}(e,t),i={tag:r.tag,prefix:n,position:a,attributes:r.attributes};t.selector=[ft(i),ft(i,!0)],t.hash=t.selector.map((function(t){return t?f(t):null})),t.hash.forEach((function(e){return pn[e]=t.id})),t.hash.some((function(t){return-1!==jr.indexOf(t)}))&&(t.fragment=t.id)}function Cn(t){return t in dn?dn[t]:null}function zn(t){return t in fn?fn[t]:null}function jn(t){var e=Nn(t);return e in fn?fn[e]:null}function Ln(t){return t in pn?pn[t]:null}function Rn(t){return Nn(t)in dn}function An(){for(var t=[],e=0,n=hn;e=0&&1===e&&a?(hn.splice(u,1),hn.push(t)):-1===u&&r&&hn.push(t)}var Xn=[],Wn=null,qn={},Pn=[],Un=!1,Bn=null;function Vn(t,e){!1===Wn.has(t)&&(Wn.set(t,e),(Bn=null===Bn&&Un?new IntersectionObserver(Gn,{threshold:[0,.2,.4,.6,.8,1]}):Bn)&&t&&t.nodeType===Node.ELEMENT_NODE&&Bn.observe(t))}function Fn(t){return Wn&&Wn.has(t)}function Jn(){for(var t=[],e=0,n=Pn;e0&&Rt(7)}function Gn(t){for(var e=0,n=t;e0&&u.width>0&&u.height>0){var s=a?Nn(a):null,c=s in qn?qn[s]:{id:s,name:Wn.get(a),interaction:16,visibility:0},l=(o?o.width*o.height*1/(u.width*u.height):0)>.05||r.intersectionRatio>.8,d=(l||10==c.visibility)&&Math.abs(i.top)+u.height>i.height;Zn(a,c,c.interaction,d?13:l?10:0),c.visibility>=13&&Bn&&Bn.unobserve(a)}}Xn.length>0&&Rt(7)}function Zn(t,e,n,r){var a=n>e.interaction||r>e.visibility;e.interaction=n>e.interaction?n:e.interaction,e.visibility=r>e.visibility?r:e.visibility,e.id?(e.id in qn&&a||!(e.id in qn))&&(qn[e.id]=e,Xn.push(Kn(e))):Pn.push({node:t,data:e})}function Kn(t){return{time:l(),data:{id:t.id,interaction:t.interaction,visibility:t.visibility,name:t.name}}}function Qn(){Xn=[]}function $n(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return Qe=l()+3e3,n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function tr(t,e){var n={id:0,hash:null,privacy:2,node:t};if(t){var r=jn(t);null!==r&&(n.id=r.id,n.hash=r.hash,n.privacy=r.metadata.privacy,r.region&&function(t,e){var n=Cn(t),r=t in qn?qn[t]:{id:t,visibility:0,interaction:16,name:Wn.get(n)},a=16;switch(e){case 9:a=20;break;case 27:a=30}Zn(n,r,a,r.visibility)}(r.region,e))}return n}function er(t){return Q(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,s,c,d,f,h,p,v,g,b,w,k,E,O,M,N,S,_,T,x,D,I,C;return $(this,(function(z){switch(e=l(),n=[e,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,a=ie;r0&&((n=[I.time,I.event]).push(i.id),n.push(I.data.x),n.push(I.data.y),gr(n),m(I.event,I.data.x,I.data.y));de();break;case 9:for(o=0,u=Pt;o0&&(n.push(T.id),n.push(I.data.action),gr(n));Qt();break;case 11:h=ae,n.push(h.width),n.push(h.height),m(t,h.width,h.height),he(),gr(n);break;case 26:p=Me,n.push(p.name),De(),gr(n);break;case 27:for(v=0,g=te;v0&&((n=[I.time,I.event]).push(N.id),n.push(I.data.x),n.push(I.data.y),gr(n),m(I.event,I.data.x,I.data.y));pe=[];break;case 39:for(S=0,_=Se;S<_.length;S++)I=_[S],n=[I.time,I.event],(T=tr(I.data.target,I.event)).id>0&&(n.push(T.id),gr(n));Te();break;case 22:for(x=0,D=rr;x1?t[1]:null,a=JSON.stringify(t);switch(r){case 5:dr+=a.length;case 37:case 6:fr+=a.length,or.push(a);break;default:ur.push(a)}_(25);var i=function(){var t=!1===u.lean&&dr>0?100:Ea.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-pr>2*i&&(I(hr),hr=null),e&&null===hr&&(25!==r&&L(),hr=D(br,i),pr=n,Vr(fr))}}function mr(){I(hr),br(!0),dr=0,fr=0,pr=0,or=[],ur=[],sr={},lr=null,cr=!1}function br(t){return void 0===t&&(t=!1),Q(this,void 0,void 0,(function(){var e,n,r,a,i,o,s,c;return $(this,(function(l){switch(l.label){case 0:return hr=null,(e=!1===u.lean&&fr>0&&(fr<1048576||Ea.sequence>0))&&x(1,1),Jn(),function(){var t=[];rr=[];for(var e=Ea.start+Ea.duration,n=Math.max(e-2e3,0),r=0,a=nr;r=n&&(i.time<=e&&rr.push(i),t.push(i))}nr=t,er(22)}(),ot(),n=!0===t,r=JSON.stringify(Na(n)),a="["+ur.join()+"]",i=e?"["+or.join()+"]":"",o=function(t){return t.p.length>0?'{"e":'+t.e+',"a":'+t.a+',"p":'+t.p+"}":'{"e":'+t.e+',"a":'+t.a+"}"}({e:r,a:a,p:i}),n?(c=null,[3,3]):[3,1];case 1:return[4,et(o)];case 2:c=l.sent(),l.label=3;case 3:return T(2,(s=c)?s.length:o.length),yr(o,s,Ea.sequence,n),ur=[],e&&(or=[],fr=0,dr=0),[2]}}))}))}function yr(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,i=!1;if(r&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(a,t))&&kr(n)}catch(t){}if(!1===i){n in sr?sr[n].attempts++:sr[n]={data:t,attempts:1};var o=new XMLHttpRequest;o.open("POST",a),null!==n&&(o.onreadystatechange=function(){Ta(wr)(o,n)}),o.withCredentials=!0,e?(o.setRequestHeader("Accept","application/x-clarity-gzip"),o.send(e)):o.send(t)}}else if(u.upload){(0,u.upload)(t),kr(n)}}function wr(t,e){var n=sr[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Fr(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),yr(n.data,null,e)):(lr={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Ur(2),200===t.status&&t.responseText&&function(t){switch(t&&t.length>0?t.split(" ")[0]:""){case"END":Fr(6);break;case"UPGRADE":U("Auto")}}(t.responseText),0===t.status&&(yr(n.data,null,e,!0),Fr(3)),t.status>=200&&t.status<=208&&kr(e),delete sr[e]))}function kr(t){1===t&&ha()}var Er,Or={};function Mr(t){var e=t.error||t;if(e.message in Or||(Or[e.message]=0),Or[e.message]++>=5)return!0;if(e&&e.message){if(Er={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},e.message.indexOf("ResizeObserver")>=0)return Lt(),!1;Nr(31)}return!0}function Nr(t){return Q(this,void 0,void 0,(function(){var e;return $(this,(function(n){switch(e=[l(),t],t){case 31:e.push(Er.message),e.push(Er.line),e.push(Er.column),e.push(Er.stack),e.push(Er.source),gr(e);break;case 33:Sr&&(e.push(Sr.code),e.push(Sr.name),e.push(Sr.message),e.push(Sr.stack),e.push(Sr.severity),gr(e,!1))}return[2]}))}))}var Sr,_r={};function Tr(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?n+"|"+r:"";t in _r&&_r[t].indexOf(i)>=0||(Sr={code:t,name:n,message:r,stack:a,severity:e},t in _r?_r[t].push(i):_r[t]=[i],Nr(33))}var xr,Dr={},Ir=[],Cr={},zr={},jr=[];function Lr(){try{var t=u.extract;if(!t)return;for(var e=0;e0;){var r=n.shift(),a=r.indexOf("["),i=r.indexOf("{"),o=r.indexOf("}");e.push({name:a>0?r.substring(0,a):i>0?r.substring(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.substring(i+1,o):null})}return e}function qr(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,r=t.shift();if(e&&e[r.name]){var a=e[r.name];if(1!==r.type&&Pr(a,r.condition))n=qr(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o1?t[n[0]]==n[1]:t[n[0]]}return!0}function Ur(t){var e=[l(),t];switch(t){case 4:var n=h;n&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),gr(e,!1)),g();break;case 25:e.push(M.gap),gr(e);break;case 35:e.push(xr.check),gr(e,!1);break;case 3:e.push(P.key),gr(e);break;case 2:e.push(lr.sequence),e.push(lr.attempts),e.push(lr.status),gr(e,!1);break;case 24:e.push(E.key),e.push(E.value),gr(e);break;case 34:var r=Object.keys(V);if(r.length>0){for(var a=0,i=r;a0){for(var s=0,c=u;s0){for(var v=0,m=p;v0){for(var w=0,k=y;w=128?1:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==xr.check&&Fr(e)}}function Fr(t){xr.check=t,fa(),ni()}function Jr(){0!==xr.check&&Ur(35)}function Gr(){xr=null}var Zr=null,Kr=null;function Qr(){Zr={},Kr={}}function $r(){Zr={},Kr={}}function ta(t,e){e&&(e=""+e,t in Zr||(Zr[t]=[]),Zr[t].indexOf(e)<0&&(Zr[t].push(e),t in Kr||(Kr[t]=[]),Kr[t].push(e),Zr[t].length>128&&Fr(5)))}function ea(){Ur(1)}function na(){Kr={}}var ra=null,aa=[],ia=null;function oa(){ia=null;var t=navigator&&"userAgent"in navigator?navigator.userAgent:"",e=document&&document.title?document.title:"",n=function(){var t={session:ga(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=ya("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-ma(n[1])<18e5&&(t.session=n[0],t.count=ma(n[2])+1,t.upgrade=ma(n[3]),t.upload=n.length>=6?"https://"+n[5]+"/"+n[4]:"https://"+n[4])}return t}(),r=ba();ra={projectId:u.projectId||f(location.host),userId:r.id,sessionId:n.session,pageNum:n.count},u.lean=u.track&&null!==n.upgrade?0===n.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&n.upload&&n.upload.length>"https://".length?n.upload:u.upload,ta(0,t),ta(3,e),ta(1,location.href),ta(2,document.referrer),ta(15,function(){var t=ga();if(u.track&&pa(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),ta(16,document.documentElement.lang),ta(17,document.dir),navigator&&(ta(9,navigator.userLanguage||navigator.language),x(26,navigator.webdriver?1:0),ua()),x(0,n.ts),x(1,0),screen&&(x(14,Math.round(screen.width)),x(15,Math.round(screen.height)),x(16,Math.round(screen.colorDepth)));for(var a=0,i=u.cookies;a0&&aa.forEach((function(e){!e.callback||e.wait&&!t||e.callback(ra,!u.lean)}))}(n),wa("_clsk",[ra.sessionId,t,ra.pageNum,n,e].join("|"),1)}function pa(t,e){try{return!!t[e]}catch(t){return!1}}function va(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5);(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e)&&wa("_clck",[ra.userId,1,n.toString(36),e].join("|"),365)}function ga(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function ma(t,e){return void 0===e&&(e=10),parseInt(t,e)}function ba(){var t={id:ga(),expiry:null,consent:0},e=ya("_clck");if(e&&e.length>0){for(var n=e.split("|"),r=0,a=0,i=document.cookie.split(";");a1){var o=";expires="+new Date(0).toUTCString()+";path=/";document.cookie="_clck="+o,document.cookie="_clsk="+o}n.length>2&&(t.expiry=ma(n[2],36)),n.length>3&&1===ma(n[3])&&(t.consent=1),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}function ya(t){if(pa(document,"cookie")){var e=document.cookie.split(";");if(e)for(var n=0;n1&&r[0]&&r[0].trim()===t)return r[1]}}return null}function wa(t,e,n){if(u.track&&(navigator&&navigator.cookieEnabled||pa(document,"cookie"))){var r=new Date;r.setDate(r.getDate()+n);var a=t+"="+e+";"+(r?"expires="+r.toUTCString():"")+";path=/";try{if(null===ia){for(var i=location.hostname?location.hostname.split("."):[],o=i.length-1;o>=0;o--)if(ia="."+i[o]+(ia||""),o0){var n={v:Ea.version,p:Ea.projectId,u:Ea.userId,s:Ea.sessionId,n:Ea.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e),r.send(JSON.stringify(n)),ka.push(t.message)}}return t}function Ta(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw _a(t)}var n=performance.now()-e;T(4,n),n>30&&(_(7),x(6,n))}}var xa=[];function Da(t,e,n,r){void 0===r&&(r=!1),n=Ta(n);try{t[s("addEventListener")](e,n,r),xa.push({event:e,target:t,listener:n,capture:r})}catch(t){}}function Ia(){for(var t=0,e=xa;t20)||(Tr(4,0),!1)}function Aa(){La=0,ja!==Ya()&&(ni(),window.setTimeout(ei,250))}function Ya(){return location.href?location.href.replace(location.hash,""):location.href}var Ha=!1;function Xa(){Ha=!0,c=performance.now(),yt(),Ia(),Sa(),ja=Ya(),La=0,Da(window,"popstate",Aa),null===Ca&&(Ca=history.pushState,history.pushState=function(){Ca.apply(this,arguments),qa()&&Ra()&&Aa()}),null===za&&(za=history.replaceState,history.replaceState=function(){za.apply(this,arguments),qa()&&Ra()&&Aa()})}function Wa(){ja=null,La=0,Sa(),Ia(),yt(),c=0,Ha=!1}function qa(){return Ha}function Pa(t){if(null===t||Ha)return!1;for(var e in t)e in u&&(u[e]=t[e]);return!0}function Ua(){ei(),O("clarity","restart")}function Ba(){return Q(this,void 0,void 0,(function(){var t,e;return $(this,(function(n){switch(n.label){case 0:return t=l(),Ot(e={id:la(),cost:3}),[4,Ue(document,e,0)];case 1:return n.sent(),[4,Rt(5,e,t)];case 2:return n.sent(),Mt(e),[2]}}))}))}var Va,Fa=null;function Ja(){Fa=null}function Ga(t){Fa={fetchStart:Math.round(t.fetchStart),connectStart:Math.round(t.connectStart),connectEnd:Math.round(t.connectEnd),requestStart:Math.round(t.requestStart),responseStart:Math.round(t.responseStart),responseEnd:Math.round(t.responseEnd),domInteractive:Math.round(t.domInteractive),domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:Math.round(t.redirectCount),size:t.transferSize?t.transferSize:0,type:t.type,protocol:t.nextHopProtocol,encodedSize:t.encodedBodySize?t.encodedBodySize:0,decodedSize:t.decodedBodySize?t.decodedBodySize:0},function(t){Q(this,void 0,void 0,(function(){var e,n;return $(this,(function(r){switch(e=l(),n=[e,t],t){case 29:n.push(Fa.fetchStart),n.push(Fa.connectStart),n.push(Fa.connectEnd),n.push(Fa.requestStart),n.push(Fa.responseStart),n.push(Fa.responseEnd),n.push(Fa.domInteractive),n.push(Fa.domComplete),n.push(Fa.loadEventStart),n.push(Fa.loadEventEnd),n.push(Fa.redirectCount),n.push(Fa.size),n.push(Fa.type),n.push(Fa.protocol),n.push(Fa.encodedSize),n.push(Fa.decodedSize),Ja(),gr(n,!1)}return[2]}))}))}(29)}var Za=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint"];function Ka(){try{Va&&Va.disconnect(),Va=new PerformanceObserver(Ta(Qa));for(var t=0,e=Za;t=0&&("layout-shift"===n&&T(9,0),Va.observe({type:n,buffered:!0}))}}catch(t){Tr(3,1)}}function Qa(t){!function(t){for(var e=(!("visibilityState"in document)||"visible"===document.visibilityState),n=0;n0;)t[e].apply(t,n.shift())}}()}();